package com.erp.base.common.config;

import java.util.Properties;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.erp.base.base.PageInterceptor;
@Configuration
public class MybatisConfig {
	@Bean  
    public PageInterceptor pageInterceptor(){  
		PageInterceptor pageInterceptor = new PageInterceptor();  
        Properties properties = new Properties();  
        properties.setProperty("dialect", "MySQL");  
        properties.setProperty("dsName", "dataSource"); 
        pageInterceptor.setProperties(properties);  
       return pageInterceptor;  
}  
}
